package com.kehutong.charge.entity;

import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;

/**
 * @program: kht
 * @description: ChargeTypeTemp 临时收费类型
 * @author: joneron
 * @create: 2021/6/22
 **/
@Table(value="t_charge_type_temp", comment="临时收费类型表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class ChargeTypeTemp extends DataEntity {

    protected ChargeTypeTemp(String id) {
        super(id);
    }

    @Column(comment="收费类型名称")
    private String feeTypeName;

    @Column(comment="是否开发票")
    private boolean invoice;

    @Column(comment="发票税点")
    private BigDecimal invoiceTax;

    @Column(comment = "排序")
    private Integer sort;

    @Column(comment = "状态：0禁用，1启用")
    private boolean status;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @UnSave
    private Long number;


    public String getFeeTypeName() {
        return feeTypeName;
    }

    public void setFeeTypeName(String feeTypeName) {
        this.feeTypeName = feeTypeName;
    }

    public boolean isInvoice() {
        return invoice;
    }

    public void setInvoice(boolean invoice) {
        this.invoice = invoice;
    }

    public BigDecimal getInvoiceTax() {
        return invoiceTax;
    }

    public void setInvoiceTax(BigDecimal invoiceTax) {
        this.invoiceTax = invoiceTax;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }
}
